package com.pm.entity.po.security;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class User {

    private Integer userId; // 用户id
    private String username;// 用户名
    private String password;// 用户密码
    private String profile;// 头像
    private String mobile;// 手机
    private Integer groupId;// 群组id
    private String groupName;// 群组名称
    private Date createDate;
    private Integer departmentId;//部门
    private String departmentName;
    private String[] taskId;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public void setTaskId(String taskId) {
        if (taskId == null || taskId == "") {
            this.taskId = null;
        } else {
            this.taskId = taskId.split(",");
        }
    }
}
